///*
// *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
// *
// *  Redistribution and use in source and binary forms, with or without
// *  modification, are permitted provided that the following conditions are met:
// *
// *  Redistributions of source code must retain the above copyright notice,
// *  this list of conditions and the following disclaimer.
// *  Redistributions in binary form must reproduce the above copyright
// *  notice, this list of conditions and the following disclaimer in the
// *  documentation and/or other materials provided with the distribution.
// *  Neither the name of the dreamlu.net developer nor the names of its
// *  contributors may be used to endorse or promote products derived from
// *  this software without specific prior written permission.
// *  Author: Chill 庄骞 (smallchill@163.com)
// */
//package com.plian.system.controller.sys.formhistoryreord;
//
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
//import com.plian.Tools.base.BaseController;
//import com.plian.system.entity.sys.FormHistoryRecord;
//import com.plian.system.model.CommonCode;
//import com.plian.system.model.ListResult;
//import com.plian.system.model.R;
//import com.plian.system.service.sys.system.IFormHistoryRecordService;
//import com.plian.system.service.sys.system.IQueryHistoryRecordService;
//import com.plian.system.vo.sys.FormHistoryRecordVO;
//import com.plian.system.vo.sys.QueryHistoryRecordVO;
//import com.plian.system.wrapper.sys.FormHistoryRecordWrapper;
//import lombok.AllArgsConstructor;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
///**
// * 控制器
// *
// * @author
// * @since 2019-09-27
// */
//@RestController
//@AllArgsConstructor
//@RequestMapping("api/formhistoryreord")
//public class FormHistoryRecordController extends BaseController {
//
//	private IFormHistoryRecordService formHistoryRecordService;
//
//	private IQueryHistoryRecordService queryHistoryRecordService;
//
//	private FormHistoryRecordWrapper formHistoryRecordWrapper;
//
//	/**
//	 * 详情
//	 */
//	@PostMapping("/detail")
//	public R<QueryHistoryRecordVO> detail(@RequestBody FormHistoryRecord formHistoryRecord) {
//		R<QueryHistoryRecordVO> obj = new R<>(CommonCode.SUCCESS);
//		obj.setPageData(queryHistoryRecordService.getDetail(formHistoryRecord));
//		return obj;
//	}
//
//	@GetMapping("/recordList/{recordId}")
//	public ListResult<FormHistoryRecordVO> recordList(@PathVariable String recordId){
//		ListResult<FormHistoryRecordVO> listResult = new ListResult<>(CommonCode.SUCCESS);
//		List<FormHistoryRecordVO> list = formHistoryRecordWrapper.entityToVO(formHistoryRecordService.list(new LambdaQueryWrapper<FormHistoryRecord>()
//				.eq(FormHistoryRecord::getRecordId, recordId).orderByDesc(FormHistoryRecord::getCreateTime)));
//		listResult.setList(list);
//		listResult.setTotal(list != null ? list.size() : 0);
//		return listResult;
//	}
//
//
//}
